import { createApp } from 'vue'
import 'element-plus/dist/index.css'
import "./assets/style/reset.scss"

import * as ElementPlusIconsVue from '@element-plus/icons-vue'//element icon
import 'virtual:svg-icons-register';//svg
import router from './router'
import App from './App.vue'

import { createPinia } from 'pinia';
const pinia = createPinia();

const app = createApp(App)
app.use(pinia)


// 动态引入el-icon
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}

// import './style.css'

import SvgIcon from "./components/SvgIcon.vue";//svg组件
app.component("Svg-icon", SvgIcon)
app.use(router);
// console.log(import.meta.env)
app.mount('#app')
